package org.darkforest.model;

import org.darkforest.common.util.DateUtil;
import org.darkforest.common.util.Page;

public class PXianshi extends Page<PXianshi>{
    private Integer xianshiId;

    private String xianshiName;

    private String xianshiTitle;

    private String xianshiExplain;

    private Integer quotaId;

    private Integer startTime;

    private Integer endTime;

    private Integer memberId;

    private Integer storeId;

    private String memberName;

    private String storeName;

    private Integer lowerLimit;

    private Byte state;


    private String startTimeStr;

    private String endTimeStr;


    private Integer activeState; //1.准备就绪 2.正在进行 3.活动结束


    public Integer getActiveState() {
        return activeState;
    }

    public void setActiveState(Integer activeState) {
        this.activeState = activeState;
    }

    public String getStartTimeStr() {
        return startTimeStr;
    }

    public void setStartTimeStr(String startTimeStr) {
        this.startTimeStr = startTimeStr;
    }

    public String getEndTimeStr() {
        return endTimeStr;
    }

    public void setEndTimeStr(String endTimeStr) {
        this.endTimeStr = endTimeStr;
    }

    public Integer getXianshiId() {
        return xianshiId;
    }

    public void setXianshiId(Integer xianshiId) {
        this.xianshiId = xianshiId;
    }

    public String getXianshiName() {
        return xianshiName;
    }

    public void setXianshiName(String xianshiName) {
        this.xianshiName = xianshiName == null ? null : xianshiName.trim();
    }

    public String getXianshiTitle() {
        return xianshiTitle;
    }

    public void setXianshiTitle(String xianshiTitle) {
        this.xianshiTitle = xianshiTitle == null ? null : xianshiTitle.trim();
    }

    public String getXianshiExplain() {
        return xianshiExplain;
    }

    public void setXianshiExplain(String xianshiExplain) {
        this.xianshiExplain = xianshiExplain == null ? null : xianshiExplain.trim();
    }

    public Integer getQuotaId() {
        return quotaId;
    }

    public void setQuotaId(Integer quotaId) {
        this.quotaId = quotaId;
    }

    public Integer getStartTime() {
        return startTime;
    }

    public void setStartTime(Integer startTime) {
        this.startTime = startTime;
    }

    public Integer getEndTime() {
        return endTime;
    }

    public void setEndTime(Integer endTime) {
        this.endTime = endTime;
    }

    public Integer getMemberId() {
        return memberId;
    }

    public void setMemberId(Integer memberId) {
        this.memberId = memberId;
    }

    public Integer getStoreId() {
        return storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName == null ? null : memberName.trim();
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName == null ? null : storeName.trim();
    }

    public Integer getLowerLimit() {
        return lowerLimit;
    }

    public void setLowerLimit(Integer lowerLimit) {
        this.lowerLimit = lowerLimit;
    }

    public Byte getState() {
        return state;
    }

    public void setState(Byte state) {
        this.state = state;
    }

    public String getStateDes(){
        switch (this.state){
            case 0: return "待审核";
            case 1: return "正常";
            case 2: return "已结束";
            case 3: return "审核拒绝";
            default: return "未知状态";
        }


    }
}